package com.yt.lxh.vo.activity.coupon;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yt.lxh.enums.CouponRangeType;
import com.yt.lxh.enums.CouponStatus;
import com.yt.lxh.enums.CouponType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "优惠券分页数据")
public class CouponPageVO {

    @ApiModelProperty(value = "优惠券ID")
    private Long id;

    @ApiModelProperty(value = "优惠券类型 0(无门槛) 1(满减) 2(每满减) 3(折扣)")
    private CouponType couponType;

    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "优惠门槛：满减/每满减(填抵扣金额门槛) 折扣(比如8折填80) 无门槛填0")
    private BigDecimal conditionAmount;

    @ApiModelProperty(value = "可以领取的开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date startTime;

    @ApiModelProperty(value = "可以领取的结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date endTime;

    @ApiModelProperty(value = "使用范围 0(全场通用) 1(指定分类) 2(指定商品)")
    private CouponRangeType rangeType;

    @ApiModelProperty(value = "发行数量")
    private Integer publishCount;

    @ApiModelProperty(value = "每人限领张数")
    private Integer perLimit;

    @ApiModelProperty(value = "已使用数量")
    private Integer useCount;

    @ApiModelProperty(value = "领取数量")
    private Integer receiveCount;

    @ApiModelProperty(value = "优惠券有效期类型；0(天数) 1(指定时间)")
    private Integer expireType;

    @ApiModelProperty(value = "过期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date expireTime;

    @ApiModelProperty(value = "过期天数 ---> 按天数计算")
    private Integer expireDay;

    @ApiModelProperty(value = "状态 0(未发布) 1(未开始) 2(进行中) 3(已结束) 4(暂停使用)")
    private CouponStatus status;

}
